﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeFile="FriendLinkApply.aspx.cs" Inherits="FriendLinkApply" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_Main" runat="Server">
    <table width="80%" align="center">
        <tr>
            <td>
                <div class="Dialog">
                    <div class="Title">
                        友情链接申请
                    </div>
                    <div class="Content">
                        <div>
                            <b>网站名称:</b><asp:TextBox ID="txt_SiteName" Width="200" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_SiteName"
                                Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                        </div>
                        <div>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>网址:</b><asp:TextBox ID="txt_URL" Width="300"
                                runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_URL"
                                Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_URL"
                                ErrorMessage="网址格式错误 例:http://www.abc.com" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                        </div>
                        <div>
                            &nbsp;&nbsp;&nbsp;<b>验证码:</b><asp:TextBox ID="txt_VCode" Width="40" runat="server"></asp:TextBox>
                            <img src="./ascx/RndNumber.aspx" style="border: 1px #666666 solid; cursor: hand;"
                                onclick="this.src=this.src+'?'" alt="看不清？点击刷新图片吧" align="absmiddle" /><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_VCode" Display="Dynamic"
                                    ErrorMessage="*"></asp:RequiredFieldValidator>
                        </div>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
                            ID="btn_Apply" runat="server" Text="申请" CssClass="Button" OnClick="btn_Apply_Click" />
                        <br />
                        <asp:Label ID="lbl_Error" runat="server" EnableViewState="false" ForeColor="Red" />
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
